package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.core.metadata.TableInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.common.core.domain.AjaxResult;
import com.zzyl.common.core.page.TableDataInfo;
import com.zzyl.nursing.domain.Reservation;
import com.zzyl.nursing.dto.ReservationDto;
import com.zzyl.nursing.dto.ReservationPageDto;
import com.zzyl.nursing.vo.MemberReservationCountByTimeVo;

import java.util.List;
import java.util.Map;

public interface IMemberReservationService extends IService<Reservation> {
    Integer cancelledCount();

    List<Map<String, Integer>> countByTime(Long time);

    void add(ReservationDto reservationDto);

    TableDataInfo selectReservationList(ReservationPageDto reservationDto);

    void updateCancelStatus(Long id);

    void updateReservationStatus();

    void clearReservation();
}
